package hb.software.selectcourse.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import domain.BaseEntity;
import hb.software.selectcourse.group.GroupSelectCourse;

@Entity
@Table(name = "T_selectcourse")
/**
 * 
 * @author User
 *
 */
public class SelectCourse extends BaseEntity<Long> {

	@ManyToOne
	@JoinColumn(name = "GROUP_ID")
	GroupSelectCourse groupSelectCourse;

	/**
	 * 
	 * @return
	 */
	public GroupSelectCourse getGroupSelectCourse() {
		return groupSelectCourse;
	}

	public void setGroupSelectCourse(GroupSelectCourse groupSelectCourse) {
		this.groupSelectCourse = groupSelectCourse;
	}

	private static final long serialVersionUID = 4475744750767977852L;
	/**
	 * selectname is the student of who select the course, selectid is the student of who
	 * select the ,coursename is the course that selected, courseid is the course that
	 * selected
	 */
	@Column
	String selectname;
	@Column
	String selectid;
	@Column
	String coursename;
	@Column
	String courseid;
	@Column
	String selectedtime;

	public String getSelectname() {
		return selectname;
	}

	public void setSelectname(String selectname) {
		this.selectname = selectname;
	}

	public String getSelectid() {
		return selectid;
	}

	public void setSelectid(String selectid) {
		this.selectid = selectid;
	}

	public String getCoursename() {
		return coursename;
	}

	public void setCoursename(String coursename) {
		this.coursename = coursename;
	}

	public String getCourseid() {
		return courseid;
	}

	public void setCourseid(String courseid) {
		this.courseid = courseid;
	}
	public String getSelectedtime() {
		return selectedtime;
	}

	public void setSelectedtime(String selectedtime) {
		this.selectedtime = selectedtime;
	}

}
